<a href='http://github.com/angular/angular.js/edit/master/docs/content/error/$parse/isecfld.ngdoc' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this doc</a>


<h1>Error: $parse:isecfld
  <div><span class='hint'>Referencing 'constructor' Field in Expression</span></div>
</h1>

<div>
    <pre class="minerr-errmsg" error-display="Referencing "constructor" field in Angular expressions is disallowed! Expression: {0}">Referencing "constructor" field in Angular expressions is disallowed! Expression: {0}</pre>
</div>

<h2>Description</h2>
<div class="description">
  <p>Occurs when an expression attempts to access an objects constructor field.</p>
<p>AngularJS bans constructor access from within expressions since constructor
access is a known way to execute arbitrary Javascript code.</p>
<p>To resolve this error, avoid constructor access.  As a last resort, alias
the constructor and access it through the alias instead.</p>
<p>Example expression that would result in this error:</p>
<pre><code>&lt;div&gt;{{user.constructor.name}}&lt;/div&gt;</code></pre>

</div>


